package com.imut.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.imut.oa.pojo.dto.CommonUserPageQueryDTO;
import com.imut.oa.pojo.dto.ExpensePageQueryDTO;
import com.imut.oa.pojo.dto.ExpenseUpdateStatusDTO;
import com.imut.oa.pojo.entity.Expense;
import com.imut.oa.pojo.vo.EmployeeVO;
import com.imut.oa.pojo.vo.ExpenseVO;
import com.imut.oa.pojo.vo.LeaveVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

@Mapper
public interface ExpenseMapper extends BaseMapper<Expense> {
    Page<ExpenseVO> selectExpensePage(Page<ExpenseVO> page,@Param("param2") ExpensePageQueryDTO expensePageQueryDTO);
    void updateExpense(Expense expense);
    int deleteById(@Param("id") Long id);

    void insertExpense(Expense expense);

    Page<ExpenseVO> selectUserExpensePage(
            Page<ExpenseVO> page,
            @Param("dto") CommonUserPageQueryDTO dto);

}